<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        
    </div>
    <script src= '../js/vue.js'></script>
    <script>
      //1.对象
       //ES5写法
      /*  const name ='yzh';
       const sex = '男';
       const age = 23;
       const obj = {
           name:name,
           sex:sex,
           age:age
       }
       console.log(obj); */

       //ES6写法
      /*  const name ='yzh';
       const sex = '男';
       const age = 23;
       const obj = {
           name,
           sex,
           age
       }
       console.log(obj); */

      //2.函数
      //ES5写法
      /* const obj = {
         run:function() {
             
         }
      } */

      //ES6写法
      const obj = {
          run() {
              
          }
      }
    </script>
</body>
</html>